import { buildService, openBuildService } from '../../helper/service'
// , openBuildService
// 值类型为String或Object,String为url(method),Object同axios(config)参数支持相同,data和params只能为对象类型
const settings = {
  getButtList: {//智慧工地项目对接情况列表
    url: '/web/v1/project/butt_list',
    method: 'get'
  },
  buttExport: {//全部导出
    url: '/web/v1/project/butt_export',
    method: 'get',
    // type: 'restful',
    responseType: 'blob'
  },
  exportCountReport: {//统计报表导出
    url: '/web/v1/project/butt_sta_export',
    method: 'get',
    // type: 'restful',
    responseType: 'blob'
  },
  buttEdit: {//大屏数据维护
    url: '/web/v1/project/butt_edit',
    method: 'put'
  },
  buttEditJoin: {//双击切换是否加入统计
    url: '/web/v1/project/butt_edit_join',
    method: 'put'
  },
  getSuppliers: {//双击切换是否加入统计
    url: '/web/v1/project/butt/supplier_box',
    method: 'GET'
  },
  getAccessStat: {//获取供应商接入情况
    url: '/web/v1/project/butt/access_stat',
    method: 'GET'
  },
  getSupplierAccessList: {//根据项目id获取大屏维护数据
    url: '/web/v1/project/butt/supplier_access_list',
    method: 'GET'
  },
}


// const openSetting = {
//   // 街道列表
//   getStreetList: {
//     url: '/api/v1/base/area/get_area_box_list',
//     method: 'post'
//   },
//   //项目列表(浙里建造1.1.8 首页)
//   getProjectManageList: {
//     url: '/adminc/v1/home_manage/h_module_program/get_data',
//     method: 'post'
//   },
//   //判断登录账号是否是建投单位
//   isJianCompany: {
//     url: 'ass/api/admin/is_jiantou',
//     method: 'get'
//   }
// }
// , ...openBuildService(openSetting)

const openSetting = {
  // 智慧工地3.0-竣工报告保存
  uploadFiles: {
    url: '/ydt/v1/j/project/file/uploadFile',
    method: 'post'
  },

  // 智慧工地3.0-竣工报告查询
  queryFiles: {
    url: '/ydt/v1/j/project/file/queryFile',
    method: 'get'
  },

  // 智慧工地3.0-竣工报告删除
  deleteFile: {
    url: '/ydt/v1/j/project/file/deleteFile',
    method: 'post'
  },

}
export default { ...buildService(settings), ...openBuildService(openSetting) }
